<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ include file="/pub/includ.jsp"%>
<script type="text/javascript">
	var save = function(){
		var flag = "failure";
		var options = {
			type: 'POST',
			async: false,
			dataType: 'content-type',
			success: function(msg) {
				flag = msg;
			}
		}
		$('#roleform').ajaxSubmit(options);
		return flag;
	}
</script>
<form id="roleform" action="<%=path %>/sys/role/add" method="post">
<table><tr><td height="2px"></td></tr></table>
<table align="center" width="70%" border="0" cellpadding="5" cellspacing="1" class="table_nbw">
	<tr>
		<td align="right" width="40%" style="background-color:fff;height:25px;">角色名称：</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw" type="text" id="rolename" name="name" value="${data.name}"></td>
	</tr>
	<tr>
		<td align="right" width="40%" style="background-color:fff;height:25px;">角色类型：</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw" type="text" value="${roleType}"></td>
	</tr>
	<tr>
		<td align="right" style="background-color:fff;height:25px;">备注：</td>
		<td align="left" style="background-color:fff">&nbsp;
			<textarea rows="3" cols="50" id="roleremarks" name="remarks">${data.remarks}</textarea>
		</td>
	</tr>
</table>	
<table width="100%"><tr><td align="center">
			<input type=hidden name="id" value="${data.id}" />
			<input type=hidden name="role_type_id" value="${data.role_type_id}" />
</td></tr></table>
</form>
